fix(gui): handle invalid file name edge case on Windows
authorJyrki Gadinger <nilsding@nilsding.org>
Thu, 17 Apr 2025 16:00:09 +0000 (18:00 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 30 May 2025 07:39:56 +0000 (09:39 +0200)
commit18cbf2503185b4dc58864b524446e8f4502e2cf6
tree744c1e2193758deac0c959d3b47d48e8d60bb2d3
parenteff040cf77a5faa64d41b00b6048532f8fa40011
fix(gui): handle invalid file name edge case on Windows

File names like "c:blah" would break the usage of the dialogue,
displaying a path like "c://blah" instead.

Apparently `QDir::filePath` checks if the passed file name is an
absolute file name using `!QFileInfo::isRelative`, which is the case if
the second character in the string is a colon -- probably indicating a
drive letter.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/gui/tray/activitylistmodel.cpp